<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>数组</title>
</head>
<body>
<script type="text/javascript">
	
// 	var arr = [1,56,23,6,43,87,3,5,55];

// 	function max(arr) {
//   	var max = arr[0];
//   	for(var i = 0; i < arr.length; i++) {
//     if(max < arr[i]) {
//       max = arr[i];
//     }
//   }
//   return max;
// }
// 	alert(max(arr));

	var arr = [10,[42],23,[45,14,66,78,22],[52,88,99],45,62];
		function findLength(new){
			var findLength = arr[0];
			for (var i = 0; i < arr.length; i++) {
				if(findLength<(arr)){
					findLength =arr[i];
				}
			};
			  return findLength;

		}
		alert(res)


		
</script>

</body>
</html>